(vc-directory-18): cd to the directory in question before the file tree walk.
authorRichard M. Stallman <rms@gnu.org>
Sat, 8 May 1993 16:17:01 +0000 (16:17 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 8 May 1993 16:17:01 +0000 (16:17 +0000)
lisp/vc.el

index 9bc5dabaa38b7548e1f03bcd2914a7ed9b881210..6a0742b8de537f31b91a906482677922707a6e34 100644 (file)
@@ -897,10 +897,11 @@ on a buffer attached to the file named in the current Dired buffer line."
 (defun vc-directory-18 (verbose)
   "Show version-control status of all files under the current directory."
   (interactive "P")
-  (let (nonempty)
+  (let (nonempty (dir default-directory))
     (save-excursion
       (set-buffer (get-buffer-create "*vc-status*"))
       (erase-buffer)
+      (cd dir)
       (vc-file-tree-walk
        (function (lambda (f)
                   (if (vc-registered f)